package cn.slipi.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author litao
 */
@EnableScheduling
@EntityScan(basePackages = {"cn.slipi.admin.entity"})
@MapperScan(basePackages = {"cn.slipi.admin.dao"})
@ServletComponentScan(basePackages = {"cn.slipi.admin"})
@SpringBootApplication(scanBasePackages = "cn.slipi.admin", exclude = {RedisRepositoriesAutoConfiguration.class})
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
    }

}
